package com.cdigtcwww01.util;

import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
class JDBCVersion
{
public static void main (String args[])
throws SQLException
{
// Load the Oracle JDBC driver
DriverManager.registerDriver(new net.sourceforge.jtds.jdbc.Driver());
// Get a connection to a database
Connection conn = DriverManager.getConnection
("jdbc:jtds:sqlserver://localhost:1433/DBSESI","sa","123");

// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
}
}
